//
//  SAPersonalSectionTableViewCell.m
//  SunOn
//
//  Created by RazeenCheng on 2017/5/3.
//  Copyright © 2017年 NeoZhang. All rights reserved.
//

#import "SAPersonalSectionTableViewCell.h"

@implementation SAPersonalSectionTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}



- (void)configCellWithIndexPath:(NSIndexPath *)indexPath
{
    NSInteger section = indexPath.section;
    NSInteger row = indexPath.row;
    
    if (section == 1) {
        self.sectionImageView.image = [UIImage imageNamed:@"grzx-shoucang"];
        self.sectionTitleLabel.text = @"我的收藏";
    } else if (section == 2) {
        if (row == 1) {
            self.sectionImageView.image = [UIImage imageNamed:@"grzx-jianjie"];
            self.sectionTitleLabel.text = @"公司简介";
        } else if (row == 2) {
            self.sectionImageView.image = [UIImage imageNamed:@"grzx-anquan"];
            self.sectionTitleLabel.text = @"安全管理";
        }
    } else if (section == 3) {
        if (row == 1) {
            self.sectionImageView.image = [UIImage imageNamed:@"grzx-bangzhu"];
            self.sectionTitleLabel.text = @"帮助反馈";
        } else if (row == 2) {
            self.sectionImageView.image = [UIImage imageNamed:@"grzx-gongju"];
            self.sectionTitleLabel.text = @"实用工具";
        }
    }
}

@end
